﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace Custom.Sequential.Approval.Workflow
{
    public sealed partial class CustomApproval
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Runtime.CorrelationToken correlationtoken3 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken4 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition4 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition5 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition6 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition7 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            this.SendMailAfterRejection = new System.Workflow.Activities.CodeActivity();
            this.RejectTask = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.SendMailAfterWorkflowComplete = new System.Workflow.Activities.CodeActivity();
            this.ApprovedTask = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.SendMailReminder = new System.Workflow.Activities.CodeActivity();
            this.DailyReminder = new System.Workflow.Activities.DelayActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.TaskChanged = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.SendMailAfterTaskDelete = new System.Workflow.Activities.CodeActivity();
            this.TaskDelete = new Microsoft.SharePoint.WorkflowActions.OnTaskDeleted();
            this.SendMailAfterItemDelete = new System.Workflow.Activities.CodeActivity();
            this.deleteTask1 = new Microsoft.SharePoint.WorkflowActions.DeleteTask();
            this.WorkflowItemDelete = new Microsoft.SharePoint.WorkflowActions.OnWorkflowItemDeleted();
            this.SequenceActivityForDailyReminder = new System.Workflow.Activities.SequenceActivity();
            this.SequenceActivityForTaskChanged = new System.Workflow.Activities.SequenceActivity();
            this.SequenceTaskDelete = new System.Workflow.Activities.SequenceActivity();
            this.SequenceWorkflowItemDelete = new System.Workflow.Activities.SequenceActivity();
            this.conditionedActivityGroup1 = new System.Workflow.Activities.ConditionedActivityGroup();
            this.LogInWorkflowHistory = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.SendMailAfterTaskCreation = new System.Workflow.Activities.CodeActivity();
            this.createTask1 = new Microsoft.SharePoint.WorkflowActions.CreateTask();
            this.WorkflowActivated = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // SendMailAfterRejection
            // 
            this.SendMailAfterRejection.Name = "SendMailAfterRejection";
            this.SendMailAfterRejection.ExecuteCode += new System.EventHandler(this.SendMailAfterRejection_ExecuteCode);
            // 
            // RejectTask
            // 
            correlationtoken1.Name = "CreateTaskToken";
            correlationtoken1.OwnerActivityName = "CustomApproval";
            this.RejectTask.CorrelationToken = correlationtoken1;
            this.RejectTask.Name = "RejectTask";
            activitybind1.Name = "CustomApproval";
            activitybind1.Path = "taskID";
            this.RejectTask.TaskOutcome = "Reject";
            this.RejectTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // SendMailAfterWorkflowComplete
            // 
            this.SendMailAfterWorkflowComplete.Name = "SendMailAfterWorkflowComplete";
            this.SendMailAfterWorkflowComplete.ExecuteCode += new System.EventHandler(this.SendMailAfterWorkflowComplete_ExecuteCode);
            // 
            // ApprovedTask
            // 
            correlationtoken2.Name = "CreateTaskToken";
            correlationtoken2.OwnerActivityName = "CustomApproval";
            this.ApprovedTask.CorrelationToken = correlationtoken2;
            this.ApprovedTask.Name = "ApprovedTask";
            activitybind2.Name = "CustomApproval";
            activitybind2.Path = "taskID";
            this.ApprovedTask.TaskOutcome = "Approved";
            this.ApprovedTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.RejectTask);
            this.ifElseBranchActivity2.Activities.Add(this.SendMailAfterRejection);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IfElseConditionReject);
            this.ifElseBranchActivity2.Condition = codecondition1;
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.ApprovedTask);
            this.ifElseBranchActivity1.Activities.Add(this.SendMailAfterWorkflowComplete);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IfElseConditionApproved);
            this.ifElseBranchActivity1.Condition = codecondition2;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // SendMailReminder
            // 
            this.SendMailReminder.Name = "SendMailReminder";
            this.SendMailReminder.ExecuteCode += new System.EventHandler(this.SendMail_ExecuteCode);
            // 
            // DailyReminder
            // 
            this.DailyReminder.Name = "DailyReminder";
            this.DailyReminder.TimeoutDuration = System.TimeSpan.Parse("24.00:00:00");
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // TaskChanged
            // 
            this.TaskChanged.AfterProperties = null;
            this.TaskChanged.BeforeProperties = null;
            this.TaskChanged.CorrelationToken = correlationtoken2;
            this.TaskChanged.Executor = null;
            this.TaskChanged.Name = "TaskChanged";
            this.TaskChanged.TaskId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.TaskChanged.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked);
            // 
            // SendMailAfterTaskDelete
            // 
            this.SendMailAfterTaskDelete.Name = "SendMailAfterTaskDelete";
            this.SendMailAfterTaskDelete.ExecuteCode += new System.EventHandler(this.SendMailAfterTaskDelete_ExecuteCode);
            // 
            // TaskDelete
            // 
            correlationtoken3.Name = "CreateTaskToken";
            correlationtoken3.OwnerActivityName = "CustomApproval";
            this.TaskDelete.CorrelationToken = correlationtoken3;
            this.TaskDelete.Executor = null;
            this.TaskDelete.Name = "TaskDelete";
            this.TaskDelete.TaskId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.TaskDelete.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.TaskDelete_Invoked);
            // 
            // SendMailAfterItemDelete
            // 
            this.SendMailAfterItemDelete.Name = "SendMailAfterItemDelete";
            this.SendMailAfterItemDelete.ExecuteCode += new System.EventHandler(this.SendMail_ExecuteCode);
            // 
            // deleteTask1
            // 
            this.deleteTask1.CorrelationToken = correlationtoken3;
            this.deleteTask1.Name = "deleteTask1";
            activitybind3.Name = "CustomApproval";
            activitybind3.Path = "taskID";
            this.deleteTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.DeleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // WorkflowItemDelete
            // 
            correlationtoken4.Name = "workflowToken";
            correlationtoken4.OwnerActivityName = "CustomApproval";
            this.WorkflowItemDelete.CorrelationToken = correlationtoken4;
            this.WorkflowItemDelete.Name = "WorkflowItemDelete";
            this.WorkflowItemDelete.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.WorkflowItemDelete_Invoked);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.notCompleted);
            // 
            // SequenceActivityForDailyReminder
            // 
            this.SequenceActivityForDailyReminder.Activities.Add(this.DailyReminder);
            this.SequenceActivityForDailyReminder.Activities.Add(this.SendMailReminder);
            this.SequenceActivityForDailyReminder.Name = "SequenceActivityForDailyReminder";
            this.SequenceActivityForDailyReminder.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition3);
            codecondition4.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.notCompleted);
            // 
            // SequenceActivityForTaskChanged
            // 
            this.SequenceActivityForTaskChanged.Activities.Add(this.TaskChanged);
            this.SequenceActivityForTaskChanged.Activities.Add(this.ifElseActivity1);
            this.SequenceActivityForTaskChanged.Name = "SequenceActivityForTaskChanged";
            this.SequenceActivityForTaskChanged.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition4);
            codecondition5.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.notCompleted);
            // 
            // SequenceTaskDelete
            // 
            this.SequenceTaskDelete.Activities.Add(this.TaskDelete);
            this.SequenceTaskDelete.Activities.Add(this.SendMailAfterTaskDelete);
            this.SequenceTaskDelete.Name = "SequenceTaskDelete";
            this.SequenceTaskDelete.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition5);
            codecondition6.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.notCompleted);
            // 
            // SequenceWorkflowItemDelete
            // 
            this.SequenceWorkflowItemDelete.Activities.Add(this.WorkflowItemDelete);
            this.SequenceWorkflowItemDelete.Activities.Add(this.deleteTask1);
            this.SequenceWorkflowItemDelete.Activities.Add(this.SendMailAfterItemDelete);
            this.SequenceWorkflowItemDelete.Name = "SequenceWorkflowItemDelete";
            this.SequenceWorkflowItemDelete.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition6);
            // 
            // conditionedActivityGroup1
            // 
            this.conditionedActivityGroup1.Activities.Add(this.SequenceWorkflowItemDelete);
            this.conditionedActivityGroup1.Activities.Add(this.SequenceTaskDelete);
            this.conditionedActivityGroup1.Activities.Add(this.SequenceActivityForTaskChanged);
            this.conditionedActivityGroup1.Activities.Add(this.SequenceActivityForDailyReminder);
            this.conditionedActivityGroup1.Name = "conditionedActivityGroup1";
            codecondition7.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.completed);
            this.conditionedActivityGroup1.UntilCondition = codecondition7;
            // 
            // LogInWorkflowHistory
            // 
            this.LogInWorkflowHistory.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.LogInWorkflowHistory.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.LogInWorkflowHistory.HistoryDescription = "Task Creation and Send Mail Successful";
            this.LogInWorkflowHistory.HistoryOutcome = "Task Creation and Send Mail Successful";
            this.LogInWorkflowHistory.Name = "LogInWorkflowHistory";
            this.LogInWorkflowHistory.OtherData = "";
            this.LogInWorkflowHistory.UserId = -1;
            // 
            // SendMailAfterTaskCreation
            // 
            this.SendMailAfterTaskCreation.Name = "SendMailAfterTaskCreation";
            this.SendMailAfterTaskCreation.ExecuteCode += new System.EventHandler(this.SendMailAfterTaskCreation_ExecuteCode);
            // 
            // createTask1
            // 
            this.createTask1.CorrelationToken = correlationtoken3;
            this.createTask1.ListItemId = -1;
            this.createTask1.Name = "createTask1";
            this.createTask1.SpecialPermissions = null;
            this.createTask1.TaskId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.createTask1.TaskProperties = null;
            this.createTask1.MethodInvoking += new System.EventHandler(this.createTask1_MethodInvoking);
            // 
            // WorkflowActivated
            // 
            this.WorkflowActivated.CorrelationToken = correlationtoken4;
            this.WorkflowActivated.Description = "This code is used when workflow Initiates.\r\n\r\n";
            this.WorkflowActivated.EventName = "OnWorkflowActivated";
            this.WorkflowActivated.Name = "WorkflowActivated";
            activitybind4.Name = "CustomApproval";
            activitybind4.Path = "workflowProperties";
            this.WorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // CustomApproval
            // 
            this.Activities.Add(this.WorkflowActivated);
            this.Activities.Add(this.createTask1);
            this.Activities.Add(this.SendMailAfterTaskCreation);
            this.Activities.Add(this.LogInWorkflowHistory);
            this.Activities.Add(this.conditionedActivityGroup1);
            this.Name = "CustomApproval";
            this.CanModifyActivities = false;

        }

        #endregion


        private Microsoft.SharePoint.WorkflowActions.CreateTask CreateTask;

        private ConditionedActivityGroup ConditionedActivityGroup;
        private Microsoft.SharePoint.WorkflowActions.UpdateTask UpdateTask;
        private Microsoft.SharePoint.WorkflowActions.CompleteTask CompleteTask;
        private Microsoft.SharePoint.WorkflowActions.DeleteTask DeleteTask;
        private Microsoft.SharePoint.WorkflowActions.DeleteTask deleteTask1;
        private CodeActivity SendMailAfterRejection;
        private CodeActivity SendMailAfterWorkflowComplete;
        private Microsoft.SharePoint.WorkflowActions.CompleteTask RejectTask;
        private CodeActivity SendMailAfterTaskDelete;
        private CodeActivity SendMailAfterItemDelete;
        private Microsoft.SharePoint.WorkflowActions.CompleteTask ApprovedTask;
        private Microsoft.SharePoint.WorkflowActions.OnWorkflowItemDeleted WorkflowItemDelete;
        private SequenceActivity SequenceWorkflowItemDelete;
        private SequenceActivity SequenceTaskDelete;
        private ConditionedActivityGroup conditionedActivityGroup1;
        private Microsoft.SharePoint.WorkflowActions.CreateTask createTask1;
        private Microsoft.SharePoint.WorkflowActions.OnTaskDeleted TaskDelete;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity LogInWorkflowHistory;
        private CodeActivity SendMailAfterTaskCreation;
        private DelayActivity DailyReminder;
        private CodeActivity SendMailReminder;
        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated WorkflowActivated;
        private IfElseBranchActivity ifElseBranchActivity2;
        private IfElseBranchActivity ifElseBranchActivity1;
        private IfElseActivity ifElseActivity1;
        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged TaskChanged;
        private SequenceActivity SequenceActivityForDailyReminder;
        private SequenceActivity SequenceActivityForTaskChanged;



    }
}
